package com.pjb.springsecurity.mapper;

import com.pjb.springsecurity.domain.SysRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysRoleMapper {
    @Select("select * from sys_role where id = (select id from sys_user where username =#{\"username\"})")
    public List<SysRole> quaryAllSysRole(String username);
}
